package com.market2.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

import com.market2.utils.converter.annotation.Conversion;
import com.market2.utils.converter.impl.NegociationConverter;

/**
 * La representation d'une methode de negociation.
 */

@Entity
@Conversion(NegociationConverter.class)
@Inheritance(strategy=InheritanceType.JOINED)
public abstract class Negociation implements Serializable
{
	private static final long serialVersionUID = 1L;
	
	@Id @GeneratedValue
	private Integer numero;
	private Double prix;

	public Integer getNumero() {
		return numero;
	}

	public void setNumero(Integer numero) {
		this.numero = numero;
	}

	public Double getPrix() {
		return prix;
	}

	public void setPrix(Double prix) {
		this.prix = prix;
	}
}
